// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

/*引入axios*/
import axios from 'axios';
Vue.prototype.$http = axios;
axios.defaults.baseURL = 'http://42.192.152.162:50021/myLattice';
axios.defaults.withCredentials=true;

import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUi)

import Vuex from 'vuex';
Vue.use(Vuex);

// 鼠标右击菜单组件
import Contextmenu from "vue-contextmenujs"
Vue.use(Contextmenu);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
